package org.szgb.console.cxht.entity;

import lombok.Data;
import lombok.EqualsAndHashCode;
import org.szgb.core.base.entity.BeanEntity;

import java.io.Serial;

@EqualsAndHashCode(callSuper = true)
@Data
public class CxhtLocationFormItem extends BeanEntity<CxhtLocationFormItem> {
    @Serial
    private static final long serialVersionUID = 1L;
    private CxhtLocationForm cxhtLocationForm;
    private CxhtFormItem cxhtFormItem;
    private Boolean isRight;
    private String remark;

    public CxhtLocationFormItem() {
    }

    public CxhtLocationFormItem(String id) {
        this.setId(id);
    }

    public CxhtLocationFormItem(String cxhtLocationFormId, String cxhtFormItemId) {
        this.cxhtLocationForm = new CxhtLocationForm(cxhtLocationFormId);
        this.cxhtFormItem = new CxhtFormItem(cxhtFormItemId);
    }

    public CxhtLocationFormItem(String id, Boolean isRight, String remark) {
        this.setId(id);
        this.isRight = isRight;
        this.remark = remark;
    }
}
